<div class="box white_bg">

<link rel="stylesheet" href="/public/themes/second/css/navigationTab.css" type="text/css"  /> 
<br/><br/>
<? $sess = new Zend_Session_Namespace(CLU_NS);?>
<div class="navigationTab" >
	<ul >
		<li name="view"> <a href="<?=$this->hvnUrl(array('action' => 'view'),'account')?>?id=<?=$this->viewParams['id']?>"> <?=t(145)?> </a> </li>
 <? if(isset($this->viewParams['id'])) : ?>
<?if($this->viewParams['id'] != $sess->userId):?>
		<li name="view-profile"> <a href="<?=$this->hvnUrl(array('action' => 'view-profile'),'account')?>?id=<?=$this->viewParams['id']?>"> <?=t(438) ?> </a> </li>
<?endif ?>
<?endif ?>
		<li name="view-posts-place"> <a href="<?=$this->hvnUrl(array('action' => 'view-posts'),'account')?>?id=<?=$this->viewParams['id']?>&content_type=place" ><?=t(146)?></a> </li>
		<li name="view-posts-gallery"> <a href="<?=$this->hvnUrl(array('action' => 'view-posts'),'account')?>?id=<?=$this->viewParams['id']?>&content_type=gallery" ><?=t(6)?></a> </li>
		<li name="view-posts-blog"> <a href="<?=$this->hvnUrl(array('action' => 'view-posts'),'account')?>?id=<?=$this->viewParams['id']?>&content_type=blog" >Blog</a> </li>
		<li name="view-posts-event"> <a href="<?=$this->hvnUrl(array('action' => 'view-posts'),'account')?>?id=<?=$this->viewParams['id']?>&content_type=event" ><?=t(147)?></a> </li>
		<li name="view-posts-news"> <a href="<?=$this->hvnUrl(array('action' => 'view-posts'),'account')?>?id=<?=$this->viewParams['id']?>&content_type=news" ><?=t(302)?></a> </li>
		<?if(in_array(get_key('registered_company_role_id'),$this->viewParams['role_id']) || strpos($sess->userPermissions, 'update user')) :?>
		<li name="view-posts-promotion"> <a href="<?=$this->hvnUrl(array('action' => 'view-posts'),'account')?>?id=<?=$this->viewParams['id']?>&content_type=promotion" ><?=t(1002)?></a> </li>
		<?endif?>
		<!-- 
		<li name="edit-profile"><a href="<?=$this->hvnUrl(array('action' => 'edit-profile'),'account')?>?id=<?=$this->viewParams['id']?>" > 
		<?=t(448) ?></a> </li>
		<li name="mailbox"> <a href="<?=$this->hvnUrl(array('action' => 'mailbox'),'account')?>?id=<?=$this->viewParams['id']?>"> <?=t(1017) ?> </a> </li>
		<li name="avatar"> <a href="<?=$this->hvnUrl(array('action' => 'avatar'),'account')?>?id=<?=$this->viewParams['id']?>"> <?=t(468) ?> </a> </li>
		<li name="change-pass"> <a href="<?=$this->hvnUrl(array('action' => 'change-pass'),'account')?>?id=<?=$this->viewParams['id']?>" ><?=t(430) ?> </a> </li>
		<li name="change-account-type"> <a href="<?=$this->hvnUrl(array('action' => 'change-account-type'),'account')?>?id=<?=$this->viewParams['id']?>" ><?=t(483) ?></a> </li>
		<li name="upgrade-account"> <a href="<?=$this->hvnUrl(array('action' => 'upgrade-account'),'account')?>?id=<?=$this->viewParams['id']?>" ><?=t(450) ?></a> </li>
		<li name="billing-info"> <a href="<?=$this->hvnUrl(array('action' => 'billing-info'),'account')?>?id=<?=$this->viewParams['id']?>" ><?=t(485) ?></a> </li>
		 -->
	</ul>
</div>
<?
	$tmp = explode ("/", $sess->masterRequest);
	$currentTab = $tmp[2]; //same as action name
	if ($currentTab == "view-posts")
		$currentTab = $currentTab . "-" . $_REQUEST['content_type'] 
?>
<script type="text/javascript" charset="utf-8">
 jQuery(document).ready(function(){
		$(".navigationTab li[name=<?=$currentTab?>]").addClass("selected");
	});
	
</script>

</div>
